import request from "@/utils/request";
import qs from "qs";
// 任务详细
export function getPost_officalCourseTask(postId) {
  return request({
    url: "/manager/courseTask/" + postId,
    method: "get",
  });
}
// 环节列表
export function listPost_officalCourseTaskContent(query) {
  return request({
    url: "/manager/courseTask/content/list",
    method: "get",
    params: query,
  });
}
// 环节详细
export function getPost_officalCourseTaskContent(postId) {
  return request({
    url: "/manager/courseTask/content/" + postId,
    method: "get",
  });
}
// 附件列表
export function listPost_officalFile(query) {
  return request({
    url: "/manager/courseTask/file/list",
    method: "get",
    params: query,
  });
}

// 任务详情副本-修改
export function updateContentTemporary(data) {
  return request({
    url: "/manager/courseTask/contentTemporary",
    method: "put",
    data: data,
  });
}
